function createTable(tableList, flags)
{
  var s = '';
  s += "<table id='tbl_ls' border='1' cellspacing='0' cellpadding='0'>";
  s += "<thead>";
  s += "<tr>";
  if(flags == "zh_CN") {
    s += "<th>索引</th>";
    s += "<th>用户代码</th>";
    s += "<th>用户名称</th>";
    s += "<th>所属部门</th>";
    s += "<th>是否过期</th>";
    s += "<th>权限</th>";  
  } else {
    s += "<th>Index</th>";
    s += "<th>ID</th>";
    s += "<th>Name</th>";
    s += "<th>Department</th>";
    s += "<th>Expired</th>";
    s += "<th>Rights</th>";
  }  
  s += "</tr>";
  s += "</thead>";
  s += "<tbody id='group_one'>";
  for(var idx in tableList)
  {
    if(idx%2 == 0)
    {
      s += "<tr class='alt-row'>";
    }
    else
    {
      s += "<tr class=''>"; 
    }
    s += "<td id='detail_idx' fieldset style='color: #666666; border-style: groove; font-weight: bold; font-size: 14px' align='center' width='80'>"+tableList[idx].Index+"</td>";
    s += "<td id='detail_uid' fieldset style='color: #666666; border-style: groove; font-weight: bold; font-size: 14px' width='160'>"+tableList[idx].Id+"</td>";
    s += "<td id='detail_nam' fieldset style='color: #666666; border-style: groove; font-weight: bold; font-size: 14px' width='200'>"+tableList[idx].Name+"</td>";
    s += "<td id='detail_dep' fieldset style='color: #666666; border-style: groove; font-weight: bold; font-size: 14px' width='200'>"+tableList[idx].Department+"</td>";
    s += "<td id='detail_exp' fieldset style='color: #666666; border-style: groove; font-weight: bold; font-size: 14px' align='center' width='80'>"+tableList[idx].Expire+"</td>";
    s += "<td id='detail_rig' fieldset style='color: #666666; border-style: groove; font-weight: bold' align='center' width='120'><a href='/usrdetail?userid="+tableList[idx].Id+"'>Rights</a></td>";
    s += "</tr>";
  }
  s += "</tbody>";
  s += "</table>";
  obj1.innerHTML = s;
}

function pagequery()
{
  usrquery.click();
}
